home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
workbench
/
tools
/
czesc_1
/
cookie
/
readme.first
< prev
next >
Wrap
Text File
|
1995-04-27
|
2KB
|
66 lines
This is the 'cookie' fortune cookie program.
Original Unix version by Karl Lehenbauer
Amiga version by Andreas M. Kirchwitz
Improved Amiga version by
Jörgen Grahn
Wetterlinsgatan 13e
521 34 Falköping
Sverige / Sweden / Suède
Changes from Andreas' port of Karl's cookie/cookhash 1.1:
o I haven't touched their documnetation. This file is a third
level of documentation which supercedes the two other.
o I always thought the randomness of the cookies was... inferior.
If I add cookies and rehash the file, a completely new set of
cookies will be displayed. Cookies seem to be selected from a
small subset of the database. I reverted to the original
ranged-random code, which seems to be better.
o The format of the cookie file was a bit unclear. It used to be,
although not documented (note the closing "%%", it was needed
if you want the last cookie to be selectable):
cookie
%%
cookie
%%
... O L D F O R M A T
%%
cookie
%%
To this, I added the possibility of comments on the line
after the "%%". Then I decided to change 'cookhash' again -
that's where most of the parsing happens - to use flex rules.
I could then make the format even better. You should now view
the '%%' rows as comments introducing the cookie. An example:
%%
%% This cookie is really cool.
%%
- Huh-huh. Huh-huh-huh.
- Heh-heh hehehhehe-heeeeeeeiiiiiiaaaaa!
-Beavis & Butt-head
%%
Hi, my name is Lolita, an' this here is Tanqueray. Since we're all about
to die, we were wondering if you'd like to be our last boyfriends on earth?
-Beavis & Butt-head: Tornado
%% Yet another short cookie:
core dumped: your fault
%% the last cookie:
I've seen the future baby - it is murder
Leonard Cohen
Thus: '%%' _before_, not after each cookie!
o Due to the changed format, the 'onecookie' utility may or may not
work. I won't fix that.
- Jörgen 1995-04-20